﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Enterprise.Caching
{
    public interface ICacheManager
    {
        // Methods
        IDictionaryEnumerator GetEnumerator();
        void Insert(string key, object value);
        void Insert(string key, object value, string[] dependencyKeys);
        void Insert(string key, object value, string[] dependencyKeys, DateTime absoluteExpiration, TimeSpan slidingExpiration);
        object Remove(string key);
        void RemoveAll();

        // Properties
        int Count { get; }
        object this[string name] { get; set; }
    }

}
